package com.fcl.oschina.adapter;

import android.content.Context;

import com.fcl.mylibrary.recyclerviewhelper.BaseAdapter;
import com.fcl.mylibrary.recyclerviewhelper.BaseHolder;
import com.fcl.oschina.R;
import com.fcl.oschina.entity.AboutEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/3/21.
 */

public class RecommendAdapter extends BaseAdapter<AboutEntity> {
    public RecommendAdapter(Context context, int layoutId, List<AboutEntity> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void bindHolder(BaseHolder baseHolder, AboutEntity data) {
        super.bindHolder(baseHolder, data);
        baseHolder.setText(R.id.title, data.getTitle());
        baseHolder.setText(R.id.comment, data.getCommentCount()+"");
    }
}
